var ra = document.evaluate("//table[@align='right'][@width='25%'][@border='0']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (ra) {
ra.parentNode.removeChild(ra);
} else {
// update 2008-03-13
ra = document.evaluate("//table[@align='right'][@width='30%'][@border='0']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (ra) {
ra.parentNode.removeChild(ra);
}
}
},
removeSponsoredLinksProducts: function() {
var res = selectAllNodes(document, document.body, "//table[@width='100%'][@bgcolor='#e5ecf9']");
for (var x=0; x<res.length; x++) {
res[x].parentNode.removeChild(res[x]);
}
var fr = document.evaluate("//table[@align='right'][@bgcolor='#ffffff'][@border='0'][@cellspacing='0'][@cellpadding='0']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
var ra = document.evaluate("//table[@class='lads']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (ra) {
ra.parentNode.removeChild(ra);
}
var ta = document.evaluate("//td[@class='btblinks']/ancestor::table[@style='margin-bottom: 0.8em;']", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (ta) {
ta.parentNode.removeChild(ta);
}
var ad = document.getElementById('bottom_ad');
if (ad) {
ad.parentNode.removeChild(ad);
}
},
removeSponsoredLinksImages: function() {
var ra = document.evaluate("//table[contains(@style,'255, 249, 221')]/parent::td/parent::tr/parent::tbody/parent::table", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
var list = document.evaluate("//li[@class='g' or @class='g w0']/descendant::h3/a", document, null, 6, null);
for (var i=0; i < list.snapshotLength; ++i) {
var a = list.snapshotItem(i);
var url = "data:image/png,%89PNG%0D%0A%1A%0A%00%00%00%0DIHDR%00%00%00%10%00%00%00%10%08%06%00%00%00%1F%F3%FFa%00%00%00%19tEXtSoftware%00Adobe%20ImageReadyq%C9e%3C%00%00%00%EDIDATx%DA%A4%93K%0A%830%10%86'%A1%1B%1F%E0%CA%13%E8%D6%95'%D1%A5%97%F4%1C%0A%5Dy%02%2F%E0%0B%1F%08%82%25%A1%13%F2%B2%B5t%60H%C8%FC%FF7%1A%1Dr%9E'%FC%13%0F%DC%94e%99%EA%C5y%9E%C1%F7%7D%BE%CF%B2%EC%F9%11%F0%16)%C5m%DB%C0q%1CX%D7%15%9A%A6I%93%241%20T%3F%60b%CCeY%F8%99%EB%BA%10E%11%B4m%9B~%05%5C%05%83%84ah%BC%AA%00%DC%B9L%06%D1u%E2%0E%A6i%B2%9A%AA%AA%E2%2B!%04(%A5P%D75%E4yn%02%C6q%B4%02%E28%E6f%CC%20%08%ECO%D0%F7%BDa%F6%3C%8Fw%C5%EE%2C%F6%7D%B7%03%BA%AES%0AhB%00%A6%AE%13%80a%18%D4%CF%23%99q%B5%E9%04%E08%0E%C5%2Cw%C5%D4u%97%FF%81l%92%BB%DB%82%DA%CC%F2z%7B%98X%14E%F1%F34%92%7F%C7%F9%25%C0%00%F6%19T%09%A3%B3%D1%A8%00%00%00%00IEND%AEB%60%82";